

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Event Detail</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Event List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Event</g:link></span>
            <span class="menuButton"><g:link class="list" action="futureevents">Future Event List</g:link></span>
        </div>
        <div class="body">
            <h1>Event Detail</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
          <form action="noofunfilledpositions" method="POST">
            <div class="dialog">
                 <table>
                    <tbody>


                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>

                            <td valign="top" class="value">${fieldValue(bean:eventInstance, field:'id')}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Name:</td>

                            <td valign="top" class="value">${fieldValue(bean:eventInstance, field:'name')}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Description:</td>

                            <td valign="top" class="value">${fieldValue(bean:eventInstance, field:'description')}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Location:</td>

                            <td valign="top" class="value">${fieldValue(bean:eventInstance, field:'location')}</td>

                        </tr>

                        
                        <tr class="prop">
                            <td valign="top" class="name">Start Date:</td>

                            <td valign="top" class="value">${fieldValue(bean:eventInstance, field:'startDate')}</td>

                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">End Date:</td>

                            <td valign="top" class="value">${fieldValue(bean:eventInstance, field:'endDate')}</td>

                        </tr>
                    </tbody>
                </table>
              </div>
                <p>Unfilled Positions</p>
          <div>
               <table>
                    <thead>
                        <tr>

                   	        <g:sortableColumn property="id" title="Id" />

                   	        <g:sortableColumn property="name" title="Name" />

                   	        <g:sortableColumn property="description" title="Description" />

                   	        <g:sortableColumn property="location" title="Location" />

                             <g:sortableColumn property="StartDate" title="Start Date" />

                   	        <g:sortableColumn property="endDate" title="End Date" />

                        </tr>
                    </thead>
                    <tbody>

                    <g:each var="eventInstance" in="${eventInstanceList}">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                            <td><g:link action="show" id="${eventInstance.id}">${fieldValue(bean:eventInstance, field:'id')}</g:link></td>

                            <td>${fieldValue(bean:eventInstance, field:'name')}</td>

                            <td>${fieldValue(bean:eventInstance, field:'description')}</td>

                            <td>${fieldValue(bean:eventInstance, field:'location')}</td>

                             <td>${fieldValue(bean:eventInstance, field:'startDate')}</td>

                            <td>${fieldValue(bean:eventInstance, field:'endDate')}</td>

                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
             </form>

        </div>
    </body>
</html>
